package com.xps.charmingshop.view.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.xps.charmingshop.R;
import com.xps.charmingshop.utils.CommonUtils;
import com.xps.charmingshop.view.base.BaseActivity;
import com.xps.charmingshop.view.fragment.CompleteFragment;
import com.xps.charmingshop.view.fragment.ConductFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by MI on 2018/1/22.
 */

public class CompleteActivity extends BaseActivity {
    CompleteFragment conductFragment;
    @BindView(R.id.actionbar_iv_back)
    ImageView actionbarIvBack;
    @BindView(R.id.actionbar_tv_title)
    TextView actionbarTvTitle;
    @BindView(R.id.fragment_Conduct)
    FrameLayout fragmentConduct;

    @Override
    protected int getLayout() {
        return R.layout.activity_conduct;
    }

    @Override
    protected void setData() {
        actionbarTvTitle.setText("我的订单");
        actionbarTvTitle.setTextColor(getResources().getColor(R.color.white));
    }

    @Override
    protected void init(Bundle inBundle) {
        ButterKnife.bind(this);
        conductFragment = new CompleteFragment();
        CommonUtils.replaceFragment(R.id.fragment_Conduct, conductFragment, getSupportFragmentManager());
    }

    @OnClick({R.id.actionbar_iv_back, R.id.actionbar_tv_title})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.actionbar_iv_back:
                finish();
                break;
            case R.id.actionbar_tv_title:
                break;
        }
    }
}
